# _*_ coding: UTF-8 _*_
# @Time     : 2022/1/5 13:48
# @Author   : zyz
# @Site     : 1012081978@qq.com
# @File     : is_dispalyed_.py
# @Software : PyCharm
from selenium import webdriver
from selenium.webdriver.common.by import By
import time
driver = webdriver.Chrome()
driver.get('https://www.baidu.com/')
a = driver.find_element(By.ID, 'kw')
print(a.is_displayed())##is_dispalyed()  元素是否可见,返回true或者false
time.sleep(2)
driver.quit()